package com.ruoyi.inventory.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品库存对象 inventory
 * 
 * @author ruoyi
 * @date 2025-06-17
 */
public class Inventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存ID */
    private Long id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 当前库存数量 */
    @Excel(name = "当前库存数量")
    private Long currentQty;

    /** 仓库ID（默认为1） */
    @Excel(name = "仓库ID", readConverterExp = "默=认为1")
    private Long warehouseId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setCurrentQty(Long currentQty) 
    {
        this.currentQty = currentQty;
    }

    public Long getCurrentQty() 
    {
        return currentQty;
    }

    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("currentQty", getCurrentQty())
            .append("warehouseId", getWarehouseId())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
